package test

import "github.com/kataras/iris/v12"
type myParams struct {
	Name string   `param:"name"`
	Age  int      `param:"age"`
	Tail []string `param:"tail"`
}
// All parameters are required, as we already know,
// the router will fire 404 if name or int or tail are missing.


func GetParams(ctx iris.Context)  {
	var p myParams
	if err := ctx.ReadParams(&p); err != nil {
		ctx.StopWithError(iris.StatusInternalServerError, err)
		return
	}

	ctx.Writef("myParams: %#v", p)
}
